home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
drdobbs
/
1987
/
08
/
letters.exp
< prev
next >
Wrap
Text File
|
1987-08-12
|
1KB
|
60 lines
MOVEQ #63,D1 ; 4
LEA DCA,A0 ; 12
LOOP MOVEP.L 0(A0),D0 ;24 * 64 1536
MOVE.L D0,(A1)+ ;12 * 64 768
DBF D1.LOOP ;10 * 63 + 14 644
RTS
; 16
---
; Total time 2980 cycles
Example 1:[help! with caption??]
move.l ReadMsg,A1
move #IOSTD_SIZE,D0
move.l _AbsExecBase,A6
callsys FreeMem ;free up read io block memory
move.l ReadPort,A1
move.l _AbsExecBase,A6
callsys RemPort ;remove read port from system
move.l ReadPort,A1
move #MP_SIZE,D0
move.l _AbsExecBase,A6
callsys FreeMem ;free up read port memory
move.l ReadPort,A4
clr.l DO
move.b MP_SIGBIT(A4),D0
move.l _AbsExecBase,A6
callsys FreeSignal ;free up read port signal bit
move.l WriteMsg,A1
move #IOSTD_SIZE,D0
move.l _AbsExecBase,A6
callsys FreeMem ;free up write io block memory
move.l WritePort,A1
move #MP_SIZE,D0
move.l _AbsExecBase,A6
callsys FreeMem ;free up write port memory
move.l WritePort,A4
clr.l D0
move.b MP_SIGBIT(A4),D0
move.l _AbsExecBase,A6
callsys FreeSignal ;free up write port signal bit
move.l WindowPtr,A0
move.l IntBase,A6
callsys ClearMenuStrip ;clear menu strip
Example 2: Code insert for the subroutine CloseAndQuit